import request from '@/utils/request'

// 查询system列表
export function listLinks(query) {
  return request({
    url: '/plan/order/link/list',
    method: 'get',
    params: query
  })
}

// 查询system详细
export function getLinks(planNo) {
  return request({
    url: '/plan/order/link/' + planNo,
    method: 'get'
  })
}

// 新增system
export function addLinks(data) {
  return request({
    url: '/plan/order/link',
    method: 'post',
    data: data
  })
}

// 修改system
export function updateLinks(data) {
  return request({
    url: '/plan/order/link',
    method: 'put',
    data: data
  })
}

// 删除system
export function delLinks(planNo) {
  return request({
    url: '/plan/order/link/' + planNo,
    method: 'delete'
  })
}

//批量添加
export function addPlanOrderLinkList(data) {
  return request({
    url: '/plan/order/link/addList',
    method: 'post',
    data: data
  })
}
